setHeightMode

abstract fun setHeightMode(block: DesignBlock, mode: SizeMode)

Set a block's mode for its height. A switch between Absolute and Percent keeps the stored height and reads it in the new mode. Set the height after the mode, without maintainCrop: otherwise the crop is adjusted from the size that the old number has in the new mode. Required scope: "layer/resize"

Parameters

block

the block to update.

mode

the height mode.